ITypeSerializer<T>
Assembly: ServiceStack.Text.dll
View Source
Declaration
public interface ITypeSerializer<T>
Methods
CanCreateFromString(Type)
Determines whether this serializer can create the specified type from a string.
View Source
Declaration
bool CanCreateFromString(Type type)
Returns
System.Boolean
:
true
if this instance [can create from string] the specified type; otherwise, false
.
Parameters
Type | Name | Description |
---|---|---|
System.Type | type | The type. |
|
DeserializeFromString(String)
Parses the specified value.
View Source
Declaration
T DeserializeFromString(string value)
Returns
<T>
Parameters
Type | Name | Description |
---|---|---|
System.String | value | The value. |
|
DeserializeFromReader(TextReader)
Deserializes from reader.
View Source
Declaration
T DeserializeFromReader(TextReader reader)
Returns
<T>
Parameters
Type | Name | Description |
---|---|---|
System.IO.TextReader | reader | The reader. |
|
SerializeToString(T)
Serializes to string.
View Source
Declaration
string SerializeToString(T value)
Returns
System.String
Parameters
Type | Name | Description |
---|---|---|
<T> | value | The value. |
|
SerializeToWriter(T, TextWriter)
Serializes to writer.
View Source
Declaration
void SerializeToWriter(T value, TextWriter writer)
Parameters
Type | Name | Description |
---|---|---|
<T> | value | The value. |
|
| System.IO.TextWriter
| writer | The writer.
|